﻿using BEGDC.Utility.Configuration;
using BEGDC.Utility.Security;
using BEGDC.Utility.Castle;
using NetBpm.Workflow.Definition.EComp;
using System.IO;

namespace ASBCC.Test.Console
{
    class Program
    {
        static void Main(string[] args)
        {

            IDefinitionSessionLocal definitionComponent = null;

            definitionComponent = AppContainer.Instance["DefinitionSession"] as IDefinitionSessionLocal;


            foreach (string xml in Directory.GetFiles(@"C:\3.5\CCWeb\Process", "*.zip", SearchOption.AllDirectories))
            {
                byte[] buff = File.ReadAllBytes(xml);
                definitionComponent.DeployProcessArchive(buff);
            }
        }

       
    }
}
